package com.sq.partner.manager.dao.impl;

import java.sql.SQLException;
import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.ITradFeeAdjustConditionDao;
import com.sq.partner.manager.mybatis.model.TradFeeAdjustCondition;
import com.sq.partner.manager.mybatis.model.TradProdInst;
import com.sq.partner.manager.util.LogUtil;
/**
 * 人险产品添加中---产品折扣系数与产品关联表操作
 * author wangyan
 * date 2015年6月4日10:16:36
 * 
 */
@Repository
public class TradFeeAdjustConditionDaoImpl extends BaseDaoImpl implements ITradFeeAdjustConditionDao {

	private static Logger logger = LogUtil.getLog(TradFeeAdjustConditionDaoImpl.class);

	@Override
	public void saveTradFeeAdjustCondition(TradFeeAdjustCondition tradFeeAdjustCondition) throws Exception {
		this.add("insertTradFeeAdjustCondition", tradFeeAdjustCondition);
	}

	@Override
	public void deleteTradFeeAdjustConditionsByTradProdCode(TradProdInst tradProdInst) throws Exception {
		this.delete("deleteTradFeeAdjustConditionsByTradProdCode", tradProdInst);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<TradFeeAdjustCondition> queryTradFeeAdjustConditionsByTradProdCode(
			TradProdInst tradProdInst) throws SQLException {
		return this.queryList("queryTradFeeAdjustConditionsByTradProdCode", tradProdInst);
	}
	
	
	
}
